namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class AccountMap : ClassMap<AccountDataModel>
    {
        public AccountMap()
        {
            this.Table("Account");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("AccountID");
            this.Map(x => x.AccountName).Not.Nullable().Length(256);
            this.Map(x => x.IsSystem).Not.Nullable();
        }
    }
}